<div class="layui-body">
<div class="aright">

<div class="layui-tab" lay-filter="demo" style="margin: 20px 30px 20px 20px;">
   
  <div class="layui-tab-content">
     
    <div class="layui-tab-item layui-show">
  <form class="layui-form bform" method="post" action="{:url('man/article/add')}" enctype="multipart/form-data">
 
  <div class="layui-form-item">
    <label class="layui-form-label">题目标题：</label>
    <div class="layui-input-block">
      <input type="text" name="ntitle" value="" placeholder="请输入内容" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">副标题：</label>
    <div class="layui-input-block">
      <input type="text" name="subtitle" value="" placeholder="请输入内容" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item" style="width: 300px;">
    <label class="layui-form-label">所属分类：</label>
    <div class="layui-input-block">
      <select name="nfenlei">
        {volist name="fenlei" id="vo"}
          <option value="{$vo.id}">{$vo.fname}</option>
        {/volist}
      </select>
    </div>
  </div>
  <div class="layui-form-item" style="width: 300px;">
    <label class="layui-form-label">题目类型：</label>
    <div class="layui-input-block">
      <select name="ntype">
        {volist name="types" id="vt"}
            <option value="{$vt.id}">{$vt.fname}</option>
        {/volist}
      </select>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">题目图片：</label>
     <div class="layui-input-block">
     <div class="file-box">
     <i class="layui-icon">&#xe61f;</i>
     <input class="file-btn" type="button" value="选择图片">
     <input class="file-txt" type="text" autocomplete="off" name="nimg" id="textfield" value="">
     <input class="file-file" type="file" name="pic" id="logo" size="28" onchange="document.getElementById('textfield').value=this.value" /> 
     </div>
     </div>
  </div>
  
  <div class="layui-form-item">
    <label class="layui-form-label">排序：</label>
    <div class="layui-input-block">
      <input type="text" name="nshunxu" value="" placeholder="请输入内容" autocomplete="off" class="layui-input">
    </div>
  </div>

   <div class="layui-form-item">
    <label class="layui-form-label">点击数：</label>
    <div class="layui-input-block">
      <input type="text" name="nclick" value="" placeholder="请输入内容" autocomplete="off" class="layui-input">
    </div>
  </div>
<div class="layui-form-item">
    <label class="layui-form-label">标题颜色：</label>
    <div class="layui-input-block">
      <input type="text" name="tcolor" value="" placeholder="默认不填为黑色" autocomplete="off" class="layui-input">
    </div>
  </div>
<div class="layui-form-item">
    <label class="layui-form-label">是否开启置顶：</label>
    <div class="layui-input-block">
       <input type="radio" name="nzhiding" value="2" title="开启">
      <input type="radio" name="nzhiding" value="1" title="关闭" checked>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">是否显示在更多：</label>
    <div class="layui-input-block">
       <input type="radio" name="nmore" value="1" title="开启">
      <input type="radio" name="nmore" value="2" title="关闭" checked>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">题目简介：</label>
      <div class="layui-input-block">
        <textarea class="layui-textarea" name="ncontent"></textarea>
      </div>
      </div>              

  <div class="layui-form-item">
    <div class="layui-input-block">
    <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
      <button class="layui-btn layui-btn-primary" onclick="history.go(-1)">返回</button>
    </div>
  </div>

</form>
</div>

  <script>
  layui.use('form',function(){
     var form = layui.form();
  })
  </script>
  </div>
 </div>
  </div>
</div>
</div>
